<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加</title>
	<link rel="stylesheet" type="text/css" href="/static/static/css/admin.css">
	<link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/font-awesome/4.6.0/css/font-awesome.min.css">
	<link rel="stylesheet" type="text/css" href="/static/static/layui/css/layui.css">
	<link rel="stylesheet" type="text/css" href="/static/static/css/global_style.css">
	<link rel="Shortcut Icon" href="/static/ico.ico">
</head>
<body>
       <!--导航栏-->

		<!--右侧内容-->
        <div class="tpl-right-item">
			<div class="tpl-body">
				<!--内容-->
				<div class="tpl-content">
					<div class="tpl-pannel clearfix">
						<div class="tpl-h-title">
							<a href="index" class="layui-btn layui-btn-sm back"><i class="fa fa-arrow-left"></i> 返回首页</a>
						</div>
						<form class="layui-form layui-col-md7" action="addinfo" method="post">
							<div class="layui-form-item">
								<label class="layui-form-label">学员姓名</label>
								<div class="layui-input-block">
									<input type="text" name="username" lay-verify="title" autocomplete="off" required placeholder="请输入学员姓名" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">年龄</label>
								<div class="layui-input-block">
									<input type="text" name="age" lay-verify="required" placeholder="请输入学员年龄" required autocomplete="off" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">手机号</label>
								<div class="layui-input-block">
									<input type="tel" name="phone" lay-verify="required" placeholder="请输入学员联系电话" required autocomplete="off" class="layui-input">
								</div>
							</div>
                            <div class="layui-form-item">
								<label class="layui-form-label">微信号</label>
								<div class="layui-input-block">
									<input type="tel" name="weixin" lay-verify="required" placeholder="请输入学员微信号" required autocomplete="off" class="layui-input">
								</div>
							</div>
                            <div class="layui-form-item">
								<label class="layui-form-label">身份证</label>
								<div class="layui-input-block">
									<input type="tel" name="idCard" lay-verify="required" placeholder="请输入学员身份证号" required autocomplete="off" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">住址</label>
								<div class="layui-input-block">
									<input type="text" name="place" lay-verify="required" placeholder="请输入学员住址" required autocomplete="off" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">状态</label>
								<div class="layui-input-block">
									<input type="checkbox" lay-skin="switch" lay-filter="status" lay-text="已约考|未约考" checked>
									<input type="hidden" name="status" value="已约考">
								</div>
							</div>
							<div class="layui-form-item">
								<button class="layui-btn layui-btn-sm">提交</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="/static/static/layui/layui.js"></script>
	<script type="text/javascript" src="/static/static/js/admin.js"></script>
	<script type="text/javascript">
		layui.use(["layer","form","jquery"],function(){
			var form = layui.form;
			var $ = layui.jquery;
			var layer = layui.layer;
			form.on('switch(status)', function(data){
				$("input[name='status']").val(this.checked ? "启用" : "禁用");
			});
		})
	</script>
</body>
</html>